<template>
  <div id="app">
    <div v-if="$route.meta.keepAlive" style="display: flex;flex-direction: column;">
      <NavigationBar style="z-index: 3;margin-bottom: 80px"></NavigationBar>
      <router-view style=" overflow-y: auto; z-index: 1;"></router-view>
    </div >
    <router-view v-if="!$route.meta.keepAlive" ></router-view>
  </div>
</template>

<script>
import NavigationBar from "@/components/NavigationBar.vue";
export default {
  name: 'App',
  components: {
    NavigationBar, // 注册组件，以便在模板中使用
  },
}
</script>



<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

</style>
